using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace DACNPM.ReportFile
{
    public partial class DoanhThuTungQuyReport : DevExpress.XtraReports.UI.XtraReport
    {
        public DoanhThuTungQuyReport()
        {
            InitializeComponent();
        }

        public void Load(String quy, String nam)
        {
            lblQuy.Text = quy;
            lblNam.Text = nam;

            xrMaHang.DataBindings.Add("Text", DataSource, "id_Hang");
            xrTenHang.DataBindings.Add("Text", DataSource, "TenHang");
            xrNhaCungCap.DataBindings.Add("Text", DataSource, "TenNhaCungCap");
            xrSoLuongBanRa.DataBindings.Add("Text", DataSource, "SoLuongBan");
            xrDonGia.DataBindings.Add("Text", DataSource, "DonGia");
            xrSoTienMua.DataBindings.Add("Text", DataSource, "SoTienMuaHang");
            xrSoTienBan.DataBindings.Add("Text", DataSource, "SoTienBanHang");
            xrLai.DataBindings.Add("Text", DataSource, "Lai");

        }
    }
}
